﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GWB.Application.System.TenantManage.Dtos
{
   /// <summary>
   /// 
   /// </summary>
   public class TenantCreateOrUpdateInputDto
    {
        /// <summary> 
        /// 主键 
        /// </summary> 
        public long Id { get; set; }
        /// <summary> 
        /// 名字 
        /// </summary> 
        [Required(ErrorMessage = "必填"), MaxLength(20, ErrorMessage = "字符串最大长度20位")]
        public string Name { get; set; }
        /// <summary> 
        /// 备注 
        /// </summary> 
        [MaxLength(300, ErrorMessage = "字符串最大长度300位")]
        public string Remarks { get; set; }
        /// <summary> 
        /// 状态 0:禁用 1:启用 
        /// </summary> 
        public int State { get; set; }
        /// <summary> 
        /// 主机 
        /// </summary> 
        [MaxLength(50, ErrorMessage = "字符串最大长度50位")]
        public string Host { get; set; }
        /// <summary> 
        /// 账号 
        /// </summary> 
        [Required(ErrorMessage = "必填"), MaxLength(50, ErrorMessage = "字符串最大长度50位")]
        public string Account { get; set; }
        /// <summary> 
        /// 有效期 
        /// </summary> 
        public DateTime? ExpirationTime { get; set; }
        /// <summary> 
        /// 数据库连接 
        /// </summary> 
        [ MaxLength(256, ErrorMessage = "字符串最大长度256位")]
        public string ConnectionString { get; set; }
        /// <summary> 
        /// 电话 
        /// </summary> 、
        [Required(ErrorMessage = "必填"), MaxLength(20, ErrorMessage = "字符串最大长度20位")]
        public string Phone { get; set; }



    }
}
